package com.boarsoft.demo.controller;

import java.io.IOException;

import javax.servlet.ServletException;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/demo")
public class Controller {
	private static final Logger log = LoggerFactory.getLogger(Controller.class);

	// @Autowired(required = false)
	// protected LoadBalancerClient balancer;
	// @Autowired
	// protected DiscoveryClient discoveryClient;
	// @Autowired
	// protected ServiceRegistry serviceRegistry;
	// @Autowired
	// private Environment environment;

	@RequestMapping("/hello")
	public String hello() throws ServletException, IOException {
		log.info("OK!");
		return "OK";
	}

}
